package com.tensquare.qa.client;

import com.tensquare.qa.client.impl.BaseClientImpl;
import eneity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: fxx
 * @Date: 2021/1/14 15:37
 */
@FeignClient(value = "tensquare-base", fallback = BaseClientImpl.class)
public interface BaseClient {

    //PathVariable里需要写变量名，不然在这里是找不到的
    @GetMapping("/label/{labelId}")
    public Result findById(@PathVariable("labelId") String labelId);
}
